package com.chanchaw;

import com.chanchaw.service.UserInterface;
import com.chanchaw.service.UserService;
import com.summer.SummerApplicationContext;

/**
 * @author chanchaw
 * @create 2022-10-10 10:22
 */
public class Test {
    public static void main(String[] args) {
        SummerApplicationContext applicationContext = new SummerApplicationContext(AppConfig.class);
//        UserService userService = (UserService) applicationContext.getBean("userService");
        UserInterface userService = (UserInterface) applicationContext.getBean("userService");
        userService.test();
    }
}
